﻿using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
using MilwormsGameData;

namespace MilwormsGameContentPipeline
{
    [ContentTypeWriter]
    public class DialogWriter : MilwormsGameWriter<Dialog>
    {
      
        protected override void Write(ContentWriter output, Dialog value)
        {
            output.Write(value.Name);
            output.Write(value.Lp);
            output.Write(value.Txt);
            output.Write(value.Val);
        }
        public override string GetRuntimeType(TargetPlatform targetPlatform)
        {
            //   return base.GetRuntimeType(targetPlatform);
            return typeof(Dialog).AssemblyQualifiedName;
        }

        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            //return base.GetRuntimeReader(targetPlatform);
            return typeof(MilwormsGameData.Dialog.DialogReader).AssemblyQualifiedName;
        }
    }
    
}